<?php
class InputForm extends CFormModel
{
    public $depend_type;
	public $input_type;
	public $res_id;
	public $required;
	public $partition;
    public $log_pattern;
	
	/**
	 * Declares the validation rules.
	 */
	public function rules()
	{
		return array(
			array('input_type, res_id, depend_type, partition', 'required'),
		);
	}

	/**
	 * Declares customized attribute labels.
	 * If not declared here, an attribute would have a label that is
	 * the same as its name with the first letter in upper case.
	 */
	public function attributeLabels()
	{
		return array(
            'depend_type' =>  '依赖类型',
            'input_type'  =>  '输入类型',
            'res_id'    =>  '资源名',
            'required'  =>  '必须',
            'partition'  =>  '依赖时间',
            'log_pattern' => '匹配规则',
		);
	}
}
